package com.morningstar.system.feign;

import com.morningstar.common.arco.SelectOption;
import com.morningstar.system.api.feign.ISystemFormFeign;
import com.morningstar.system.service.SysFormService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class SysFormFeignController implements ISystemFormFeign {

    @Resource
    private SysFormService formService;

    @Override
    public List<SelectOption> select() throws Exception {
        return SelectOption.getSelectOptionList(formService.list());
    }
}
